import Vue from 'vue'
import App from './App.vue'

// 引入路由
import router from './router'

// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 引入全局样式
import '@/assets/css/global.css'

// 引入vuex
import store from '@/store/index'

// 引入axios
import axiosUtils from "@/utils/axiosUtils";

Vue.prototype.$get = axiosUtils.get;
Vue.prototype.$post = axiosUtils.post;
Vue.prototype.$put = axiosUtils.put;
Vue.prototype.$delete = axiosUtils.delete;

// 引入storage封装类
import Storage from "@/utils/storageUtils";

Vue.prototype.Storage = Storage;

// 引入api接口工具类
import API from "@/utils/APIUtils"

Vue.prototype.$api = API;

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
